local Shape = require "graphic.shape"
local M_PI = math.pi

local s = DisplayShape.new(stage:getSize())
	:setLineWidth(6)
	:rectangle(12, 12, 232, 70)
	:newSubPath()
	:arc(64, 64, 40, 0, 2*M_PI)
	:newSubPath()
	:arcNegative(192, 64, 40, 0, -2*M_PI)
	:setFillRule(Shape.FILL_RULE_EVEN_ODD)
	:setSourceColor(0, 0.7, 0)
	:fillPreserve()
	:setSourceColor(0, 0, 0)
	:stroke()
	:setPosition(0, 128)
	:rectangle(12, 12, 232, 70)
	:newSubPath()
	:arc(64, 64, 40, 0, 2*M_PI)
	:newSubPath()
	:arcNegative(192, 64, 40, 0, -2*M_PI)
	:setFillRule(Shape.FILL_RULE_WINDING)
	:setSourceColor(0, 0, 0.9)
	:fillPreserve()
	:setSourceColor(0, 0, 0)
	:stroke()

stage:addChild(s)
stage:showfps(true)
